//
//  URLs.h
//  SaiNiuHui
//
//  Created by 吕飞俊 on 15/11/6.
//  Copyright © 2015年 国都快易科技（深圳）有限公司. All rights reserved.
//   _          ______   _      _
//  | |        |  ____| (_)    | |
//  | |  __   _| |__ ___ _     | |_   _ _ __
//  | |  \ \ / /  __/ _ \ |_   | | | | | '_ \
//  | |___\ V /| | |  __/ | |__| | |_| | | | |
//  |______\_/ |_|  \___|_|\____/ \__,_|_| |_|
//

#import <Foundation/Foundation.h>

#pragma mark 发现
/**问题列表*/
#define URLsQuestionList        [URLs geturl:@"/?/explore/ajax/question_list/"]
/**入市攻略*/
#define URLsArtlist             [URLs geturl:@"/?/explore/ajax/lesson_mobile/"]
/**置顶*/
#define URLsArtTop              [URLs geturl:@"/?/explore/ajax/top_mobile/"]
/**发现*/
#define URLsDiscoverLists       [URLs geturl:@"/?/explore/ajax/live_mobile/"]
/**观点直播*/
#define URLsOptional            [URLs geturl:@"/?/explore/ajax/viewpoint_mobile/"]

#pragma mark 问题
/**添加问题*/
#define URLsNewQuestion         [URLs geturl:@"/?/publish/ajax/publish_question_mobile/"]
/**提交答案*/
#define URLsAnswerQuestion      [URLs geturl:@"/?/question/ajax/save_answer_mobile/"]
/**问题详情*/
#define URLsQuestionDetail      [URLs geturl:@"/?/question/ajax/get_answers_by_question_id/"]
/**雷锋榜*/
#define URLsAnswerTop           [URLs geturl:@"/?/people/ajax/get_people_by_reputation/"]

#pragma mark 关注+点赞
/**关注*/
#define URLsFollow              [URLs geturl:@"/?/follow/ajax/follow_people_mobile/"]
/**点赞*/
#define URLsAttend              [URLs geturl:@"/?/question/ajax/answer_vote_mobile/"]
/**关注/点赞列表*/
#define URLsFollowsList         [URLs geturl:@"/?/people/ajax/follows_mobile/"]

#pragma mark 个人资料
/**奖品列表*/
#define URLsMatchAwards          [URLs geturl:@"/?/game/ajax/my_awards/"]
/**消息列表*/
#define URLsMessageList         [URLs geturl:@"/?/notifications/ajax/list_mobile/"]
/**读消息*/
#define URLsReadMessage         [URLs geturl:@"/?/notifications/ajax/read_notification/"]
/**未读消息数*/
#define URLsUnlookMessage       [URLs geturl:@"/?/notifications/ajax/get_unread_notification/"]
/**个人动态*/
#define URLsPersonalActivity    [URLs geturl:@"/?/people/ajax/user_actions_mobile/"]
/**重设密码*/
#define URLsResetPassword       [URLs geturl:@"/?/account/ajax/modify_password_mobile/"]
/**上传照片*/
#define URLsUpdateHeaderImg     [URLs geturl:@"/?/account/ajax/avatar_upload_mobile/"]
/**更新个人资料*/
#define URLsUpdatePersonalData  [URLs geturl:@"/?/account/ajax/profile_setting_mobile/"]
/**查询用户资料*/
#define URLsSearchUserInfo      [URLs geturl:@"/?/account/ajax/get_userinfo_by_id/"]
/**头像拼接地址*/
#define followHeaderImgPath     [URLs geturl:@"/uploads/avatar/"]

#pragma mark 比赛
/**比赛列表*/
#define URLsMatchList           [URLs geturl:@"/?/game/ajax/get_game_list/"]
/**加入比赛*/
#define URLsJoinMatch           [URLs geturl:@"/?/game/ajax/join_game/"]
/**比赛排名*/
#define URLsMatchNo             [URLs geturl:@"/?/game/ajax/get_players/"]
/**交易列表详情*/
#define URLsTransactionList     [URLs geturl:@"/?/game/ajax/get_game_transaction_list/"]
/**我的比赛列表*/
#define URLsMyMatchList         [URLs geturl:@"/?/game/ajax/my_games/"]
/**我的比赛列表*/
#define URLsAdvertisingList     [URLs geturl:@"/?/game/ajax/showboxs/"]

#pragma mark 牛圈
/**活跃榜*/
#define URLsActivityList        [URLs geturl:@"/?/people/ajax/active_people_list/"]
/**土豪榜*/
#define URLsRichPeopleList      [URLs geturl:@"/?/people/ajax/rich_people_list/"]
/**牛人动态*/
#define URLsExcellentActList    [URLs geturl:@"/?/people/ajax/nb_people_actions/"]

/**提交设备token*/
#define URLsUpdateDiviceToken   [URLs geturl:@"/?/account/ajax/upload_device_token/"]

#pragma mark 股票相关：交易+行情
/**行情*/
#define MarketStoke             [URLs getStockurl:@"8009"]
/**交易*/
#define ExchangeStoke           [URLs getStockurl:@"8080"]
/**交易详情*/
#define TransfDetailViewCtl     @"TransfDetailViewController"
/**比赛资金*/
#define MatchFunding            @"MatchFunding"
/**比赛持仓*/
#define MatchData               @"MatchData"

#define URLEnumProduce          @"http://123.56.68.20"
#define URLEnumTest             @"http://123.56.68.20"
#define URLEnumDevelop          @"http://123.56.68.20"
#define StockEnumProduce        @"http://123.56.68.20"
#define StockEnumTest           @"http://123.56.68.20"
#define StockEnumDevelop        @"http://123.56.68.20"

#pragma mark 业务常量
typedef enum:NSInteger {
    EnumProduce = 0,
    EnumTest,
    EnumDevelop
   
}EnumEnvironment;

typedef enum:NSInteger {
    EnumRequestSuccess = 1,
    EnumRequestNoneData ,
    
}EnumRequestNo;
#pragma mark 类的属性及方法
@interface URLs : NSObject

@property (nonatomic, assign) EnumEnvironment enumEnvironment;

+(instancetype)sharedInstance;

+(NSString *)geturl:(NSString *)url;

+(NSString *)getStockurl:(NSString *)url;

@end
